package com.nave.segundaguerra.servidorecliente.util;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

import com.example.honraepodercliente.R;

public class BitmapStorage {
	
	// Declare the Bitmaps
	private Bitmap cenario;
	
	private static BitmapStorage instance;
	public static BitmapStorage getInstance()
	{
		if(instance == null)
		{
			instance = new BitmapStorage();
		}
		
		return instance;
	}
	private BitmapStorage()
	{	
		// instantiate the bitmaps
		this.cenario = BitmapFactory.decodeResource(ActivityUtil.getResources(), R.drawable.cenario);
	}
	

	// CREATE BITMAP
	private void CreateBitmap(Bitmap bitmap, int source)
	{
		bitmap = BitmapFactory.decodeResource(ActivityUtil.getResources(), source);
	}
	
	// GETTERS AND SETTERS
	public Bitmap getCenario() {
		return cenario;
	}
	public void setCenario(Bitmap cenario) {
		this.cenario = cenario;
	}
}
